package com.olddriver.crm.web.controller;

import com.olddriver.crm.page.PageResult;
import com.olddriver.crm.query.ClientFailQueryObject;
import com.olddriver.crm.service.IClientFailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("clientFail")
public class ClientFailController {
    @Autowired
    private IClientFailService clientFailService;

    //跳转到潜在客户的页面
    @RequestMapping("view")
    public String fake_view() {
        return "client/client_fail";
    }


    //查询客户开发失败记录
    @ResponseBody
    @RequestMapping("selectAllFail")
    public PageResult selectAllFail(ClientFailQueryObject qo) {
        PageResult result = clientFailService.query(qo);
        return result;
    }

}
